<?php

namespace app\zhan\util;

use think\Db;
use Wechat\Loader;

class Wechat
{
    public static function getSdk($module='Pay', $mid = 15)
    {
    	$options = Db::name('wechat_account')->find($mid);
    	Loader::config($options);
    	$res = & \Wechat\Loader::get($module);
    	return $res;
    }
}
